package team.se.tms.service;

import java.util.List;

/**
 * 选课信息业务层接口,定义了选课信息业务层调用的方法
 *
 * @author winkyle
 * @date 2018/12/29
 */
public interface SelectCourseInfoService {
    /**
     * 根据用户id与授课id获取课程成绩
     *
     * @param userId 用户id
     * @param teachCourseId 授课id
     * @return 课程成绩
     * @throws Exception 异常
     * @create on 2018/12/29 by winkyle
     */
    Float getCourseGrade(String userId, String teachCourseId) throws Exception;

    /**课程评分
     * @create on 2018/12/26 by argentum
     *
     * @param stuIds
     * @param scores
     * @param judgements
     * @return
     * @throws Exception
     */
    Boolean modifySelectCourseGrade(String teachCourseId, List<String> stuIds, List<Float> scores, List<String> judgements) throws Exception;

}
